package psrc.logic.pages.login;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;

import psrc.logic.pages.base.ControllerBase;

public class LogoutController extends ControllerBase{

	private static final long serialVersionUID = 1L;

	@Override
	public String executeController() throws Exception {
		
		try {
			Map session = ActionContext.getContext().getSession();
			session.remove("logined");
			session.remove("username");
		} catch (Exception e) {
			e.printStackTrace();
			return ERROR;
		}
		return SUCCESS;
	}

}
